package cn.desk.database.dao;

import java.sql.SQLException;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import cn.desk.database.entity.ColumnInfo;
import cn.desk.database.entity.TableInfo;

public interface IDatabaseDao<T extends TableInfo> {
	static final Logger logger=LoggerFactory.getLogger(IDatabaseDao.class);
	List<TableInfo> listAllTableView(T t) throws SQLException;

	List<ColumnInfo> listAllColumn(String name) throws SQLException;

	List<List<String>> executSql(String sql) throws SQLException;
	
	public T load(T t) throws SQLException;

}
